package cn.zero.flowspringbootstater.modular.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 审批流程事件
 * </p>
 *
 * @author lei
 * @since 2022-06-17
 */
@Data
@Accessors(chain = true)
@TableName("t_flow_events")
public class FlowEvents   {

    private static final long serialVersionUID = 1L;


    private Long id;

    /**
     * 单据id
     */
    private String orderId;

    /**
     * 节点编号
     */
    private Long flowNodeId;

    /**
     * 审批人id
     */
    private String userId;


    /**
     * 审批附件名称
     */
    private String annexName;

    /**
     * 审批附件路径
     */
    private String annexUrl;

    /**
     * 审批意见
     */
    private String auditInfo;

    /**
     * 审批日期
     */
    private LocalDateTime auditDate;

    /**
     * 审批结果  1：通过 ;0不通过
     */
    private String flowStatus;

    /**
     * 审批不同意之后词这条数据的状态  1：有效  0：作废
     */
    private String eventStatus;

    @TableField(value="updated_time",fill= FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value="created_time",fill= FieldFill.INSERT)
    private LocalDateTime createdTime;


    private String createdBy;

    private String updatedBy;




}
